package com.my.blog.website.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * <p>激活环境的配置类         :<br/></p>
 * <p>读取的是激活的application文件   :<br/></p>
 * <p>
 * Created by LJR on 2018/3/24.
 */
@Configuration
@PropertySource("classpath:/application-${spring.profiles.active}.properties")
public class CommonConfiguration {

    @Value("${upload.base.path}")
    private String baseUploadPath;

    @Value("${web.url}")
    private String webDomain;

    @Value("${app.name}")
    private String appName;

    public String getBaseUploadPath() {
        return baseUploadPath;
    }
    public void setBaseUploadPath(String baseUploadPath) {
        this.baseUploadPath = baseUploadPath;
    }
    public String getWebDomain() {
        return webDomain;
    }
    public void setWebDomain(String webDomain) {
        this.webDomain = webDomain;
    }
    public String getAppName() {
        return appName;
    }
    public void setAppName(String appName) {
        this.appName = appName;
    }
}
